Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve sanitization in params preparation #4

Conversation

dingo-d
Copy link
Collaborator

@dingo-d dingo-d commented Apr 11, 2024

Description

sanitize_text_field can be too aggressive when saving settings (namely stripping < character).

I've used the code from that function, but without encoding < to &lt;.

@mbmjertan I'll need your help with this to see if it would be safe from any kind of SQL injections or other vulnerabilities that could be exploited using not encoding < character.

@dingo-d dingo-d self-assigned this Apr 11, 2024
Copy link
Member

@iruzevic iruzevic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks ok

@iruzevic iruzevic merged commit fbd0ff6 into infinum:develop Apr 15, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants